import templateSubPackages from './templates/subPackages.json';
import subPackages from './subPackages.json';

export default {
  pages: [
    'pages/home/index',
    'pages/mine/index',
    'pages/deleteDevice/index',
    'pages/deviceInfo/index',
    'pages/account/index',
    'pages/newLogin/index',
    'pages/experienceCenter/index',
    'pages/deviceLock/index',
    'pages/license/index',
    'pages/thirdPlatform/index',
    'pages/thirdPlatform/devices',
    'pages/about/index',
    'pages/account/destructionAccount/index',
    'pages/account/bindPhone/index',
    'pages/BleTips/index',
    'pages/BleTips/location',
    'pages/payment/index',
    'pages/payment/packages',
    'pages/payment/record',
    'pages/payment/deviceList',
  ],
  preloadRule: {
    'pages/home/index': {
      network: 'all',
      packages: ['pages/configDevice'],
    },
  },
  tabBar: {
    custom: true,
    list: [
      {
        pagePath: 'pages/home/index',
        text: 'HOME',
        iconPath: 'assets/images/tab_icon_home_nor.png',
        selectedIconPath: 'assets/images/tab_icon_home_sel.png',
      },
      {
        pagePath: 'pages/mine/index',
        text: 'MIME',
        iconPath: 'assets/images/tab_icon_my_nor.png',
        selectedIconPath: 'assets/images/tab_icon_my_sel.png',
      },
    ],
  },
  subPackages: [...subPackages, ...templateSubPackages],
  // plugins: {
  //   "login-plugin": {
  //     "version": "0.0.5",
  //     "provider": "wx9dafebf76cb7cd05"
  //   }
  // },
  // functionalPages: {
  //   independent: true
  // },
  window: {
    // backgroundTextStyle: 'light',
    // navigationBarBackgroundColor: '#fff',
    // navigationBarTitleText: '',
    // navigationBarTextStyle: 'black',
    navigationStyle: 'custom',
    disableScroll: true,
  },
  lazyCodeLoading: 'requiredComponents',
  '__usePrivacyCheck__': true,
  darkmode: false
};
